﻿@{
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<Material>(s =>
 {
     s.Title("选择品名");
     s.Action(@Url.Action("LookUp"));
     s.layoutH(111);
     s.ExtParam(new { NeedProcess = ViewBag.NeedProcess, Type = ViewBag.Type });
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.Bind(e => e.NeedProcess).Hide();
         c.BindEnum(m => m.BigClass, "BigClass").Width(50);
         c.BindEnum(e => e.Category, "MaterialCategory");
         c.BindEnum(e => e.Type, "MaterialType");
         c.Bind(e => e.Code).Width(60).AsQuery();
         c.Bind(e => e.Name).Width(60).AsQuery().Align(GridAlign.Left);
         c.Bind(e => e.CurrentPrice).Width(60).Align(GridAlign.Right);
         c.BindEnum(e => e.Specification, "MaterialSpec").Width(50);
         c.BindEnum(e => e.Unit, "MaterialUnit").Width(50);
         c.Bind(e => e.SafeStorage).Width(50).Align(GridAlign.Right);
         c.Bind(e => e.RawMaterialId).Hide();
         c.Bind(e => e.RawMaterialName).Width(60).Align(GridAlign.Left);
         c.Bind(e => e.ProcessRate).Width(40).Align(GridAlign.Right);
     });
     s.Buttons(b =>
     {
         b.BindSelectButton();
         b.BindCancelButton();
     });
 }))
